﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Configuration;
using System.Threading.Tasks;

namespace rmyy.RepositoryFactory
{
    public partial class AbstractFactory
    {
        public static readonly string assemblyNmae=ConfigurationManager.AppSettings["Repository_dllName"];
        public static readonly string nameSpace=ConfigurationManager.AppSettings["Repository_nameSpace"];
        public static object CreateInstance(string fullClassName)
        {
            var assembly = Assembly.Load(assemblyNmae); 
            return assembly.CreateInstance(fullClassName);
        }
    }

}
